﻿/**
 * Post.java 1.0 2007-4-15 上午12:34:23,创建 by yangfan
 */


package org.in4j.bbs.model;

import java.sql.Timestamp;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 *
 * @author 杨帆
 * @version 1.0 2007-4-15 上午12:34:23,创建
 */
public class Post
{
	private Integer id;
	private String title;
	private User author;
	private String content;
	private Timestamp publishTime;
	private Timestamp updateTime;
	private String updateUser;
	private Topic topic;
	private int status;

	public User getAuthor()
	{
		return author;
	}
	public void setAuthor(User author)
	{
		this.author = author;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public Integer getId()
	{
		return id;
	}
	public void setId(Integer id)
	{
		this.id = id;
	}
	public Timestamp getPublishTime()
	{
		return publishTime;
	}
	public void setPublishTime(Timestamp publishTime)
	{
		this.publishTime = publishTime;
	}
	public int getStatus()
	{
		return status;
	}
	public void setStatus(int status)
	{
		this.status = status;
	}
	public String getTitle()
	{
		return title;
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public Topic getTopic()
	{
		return topic;
	}
	public void setTopic(Topic topic)
	{
		this.topic = topic;
	}
	public Timestamp getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime)
	{
		this.updateTime = updateTime;
	}
	public String getUpdateUser()
	{
		return updateUser;
	}
	public void setUpdateUser(String updateUser)
	{
		this.updateUser = updateUser;
	}

	@Override
	public String toString()
	{
		return new ToStringBuilder(this).append("id", id).append("title", title).append("author", author).toString();
	}


}
